<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<html lang="zh-cn" xml:lang="zh-cn">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="步骤10：（可选）修改Project的快照配额">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="zh-cn_topic_0000001792503690.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="30-OceanProtect 备份一体机 1.5.0-1.6.0 帮助中心">
  <meta name="DC.Publisher" content="20240320">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="ZH-CN_TOPIC_0000001792343930">
  <meta name="DC.Language" content="zh-cn">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>步骤10：（可选）修改Project的快照配额</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="ZH-CN_TOPIC_0000001792343930"></a><a name="ZH-CN_TOPIC_0000001792343930"></a>
  <h1 class="topictitle1">步骤10：（可选）修改Project的快照配额</h1>
  <div>
   <p>OpenStack云平台中每个Project的快照配额默认是10个。当同一个Project下同时备份的云磁盘数量超过10个时，备份任务会失败。可参考本节在OpenStack云平台修改Project的快照配额。</p>
   <div class="section">
    <h4 class="sectiontitle">操作步骤</h4>
    <ol>
     <li><span>使用PuTTY，以<strong>fsp</strong>账号通过管理IP地址登录任一OpenStack节点。</span></li>
     <li><span>执行以下命令切换到root账号。</span><p></p><pre class="screen">su - root</pre> <p></p></li>
     <li><span>执行以下命令导入环境变量，选择“openstack environment variable (keystone v3)”，并输入密码。</span><p></p><pre class="screen">source set_env </pre> <p></p></li>
    </ol>
    <ol start="4">
     <li><span>执行以下命令查询需要修改快照配额的Project ID。</span><p></p><pre class="screen">openstack project list</pre> <p></p></li>
     <li><span>执行以下命令查询该Project当前的快照配额。</span><p></p><pre class="screen">cinder quota-usage <em>ProjectID</em></pre>
      <div class="p">
       如：
       <pre class="screen">42F8515F-070B-E711-BE89-C0BFC0BA9506:<font style="font-size:8pt" face="Courier New">~</font> # cinder quota-usage 9c3792495cfd4811a0055e8c21601e9f
+-------------------------+--------+----------+-------+-----------+
| Type                    | In_use | Reserved | Limit | Allocated |
+-------------------------+--------+----------+-------+-----------+
| backup_gigabytes        | 0      | 0        | 5120  | 0         |
| backups                 | 0      | 0        | 100   | 0         |
| gigabytes               | 4511   | 0        | -1    | 0         |
| gigabytes_\\test        | 1      | 0        | -1    | 0         |
| gigabytes___DEFAULT__   | 2171   | 0        | -1    | 0         |
| gigabytes_cloud_volume  | 1584   | 0        | -1    | 0         |
| gigabytes_luodan_share  | 4      | 0        | -1    | 0         |
| gigabytes_no_share      | 8      | 0        | -1    | 0         |
| gigabytes_no_share_test | 2      | 0        | -1    | 0         |
| gigabytes_omVolumeType0 | 290    | 0        | -1    | 0         |
| gigabytes_op            | 0      | 0        | -1    | 0         |
| gigabytes_share         | 451    | 0        | -1    | 0         |
| groups                  | 2      | 0        | 10    | 0         |
| per_volume_gigabytes    | 0      | 0        | -1    | 0         |
<strong>| </strong><strong>snapshots            </strong><strong>| 0     | 0       | 10   | 0        |</strong>
... </pre>
      </div> <p></p></li>
     <li><span>执行以下命令修改快照配额。</span><p></p><pre class="screen">cinder quota-update <em>ProjectID</em> --snapshots <em>配额数量</em></pre> <p>请根据实际任务情况修改快照配额，当需要修改为不限制快照配额时，配额数量设置为-1，如：</p> <pre class="screen">cinder quota-update 9c3792495cfd4811a0055e8c21601e9f --snapshots -1</pre>
      <div class="note">
       <img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span>
       <div class="notebody">
        <p>快照配额不是全局配置，是针对单个Project的配置。如果您需要修改多个Project的快照配额，请参考本节操作依次修改。</p>
       </div>
      </div> <p></p></li>
    </ol>
   </div>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>父主题：</strong> <a href="zh-cn_topic_0000001792503690.html">备份OpenStack云服务器</a>
    </div>
   </div>
  </div>
 </body>
</html>